<?php 
/*
Template Name: 电子教案
*/
get_header();
$this_is_page=true;
?>
<!--内容开始-->
<div class="content_bg"><div class="content_bot"><div class="content_top">
            <div class="content">
             <?php if (have_posts()) : while (have_posts()) : the_post(); 
                ?>
                <!--内容开始-->
                <div class="neirong">
                    <?php
                    if ($post->post_parent) {
                        $children = wp_list_pages("title_li=&child_of=" . $post->post_parent . "&echo=0&depth=1&sort_column=menu_order");
                        $titlenamer = get_the_title($post->post_parent);
                    } else {
                        $children = wp_list_pages("title_li=&child_of=" . $post->ID . "&echo=0&depth=1&sort_column=menu_order");
                        $titlenamer = get_the_title($post->ID);
                    }
                    ?>
                    <div class="neirongA"><h2><?php echo $titlenamer; ?></h2></div>
                    <div class="neirongB">
                    <?php if ($children) { ?>
                            <ul>    
                            <?php echo $children; ?>
                            </ul> 
                    <?php } ?>
                    </div>
                </div>
                <!--内容结束-->

                <!--右开始-->
                <div class="you">
                    <div class="weizhi"><p>当前位置：<a href="<?php bloginfo('url'); ?>">首页</a> > <?php  breadcrumb($post->ID); ?> </p></div>

                    <div class="list">
                        <div class="contentA"><p><?php the_title(); ?></p></div>
                        <div class="contentB"> 　
                             <?php the_content(); ?>
                        </div>
                        <?php wp_list_pages("title_li=&child_of=" . $post->ID. "&echo=1&depth=1&sort_column=menu_order");?>
                    </div>

                </div>
                <!--右结束-->

                <div class="clearit"></div>
                <div class="hSpace10"></div>
                <div class="hSpace10"></div>

            </div>
            
            <?php endwhile; else: ?>
                 <p>Sorry, no page found</p>
          <?php endif; ?>
        </div></div></div>
<!--内容结束-->

<?php get_footer(); ?>